import request from '@/utils/request'

/*
*增加受灾档案
* */
export function addDisaster(query) {
  return request({
    url: '/disaster/disasterArchive/add',
    method: 'post',
    data: query
  })
}

/*
*删除守在档案信息
* */
export function delDisaster(query) {
  return request({
    url: '/disaster/disasterArchive/delete',
    method: 'delete',
    params: query
  })
}

/*
*获取受灾档案详情
* */
export function getDisasterInfo(query) {
  return request({
    url: '/disaster/disasterArchive/getInfo',
    method: 'get',
    params: query
  })
}

/*
*查询受灾档案列表
* */
export function getDisasterList(query) {
  return request({
    url: '/disaster/disasterArchive/list',
    method: 'get',
    params: query
  })
}

/*
*修改受灾档案
* */
export function updateDisaster(query) {
  return request({
    url: '/disaster/disasterArchive/update',
    method: 'put',
    data: query
  })
}

/*
*查询全部保单数据
* */
export function queryAllDisasterData(query) {
  return request({
    url: '/disaster/disasterArchive/queryAllDisasterData',
    method: 'get',
    params: query
  })
}
